var myApp = sy.getModule('myApp',['infinite-scroll']);
myApp.controller('MyController', function($scope,$http) {
  
  $scope.list = [];
  
  $scope.nextPage = function() {
      sy.openLoad();
      $http.post(sy.path + "/m/store/photoList",{
    	  		id:_id
      		})
			.success(function (data) {
				$.each(data,function(i,o){
					$scope.list.push(o);
				});
	            sy.closeLoad();
	        }).error(function(data, status) {
	        	sy.closeLoad();
			});
  };
  
});
